import request from '@/utils/request'

/* 登录接口 */
export const userLoginAPI = (data) => {
  return request({
    url: '/employee/login',
    method: 'POST',
    data
  })
}

/* 获取店铺状态的接口 */
export const getShopStatusAPI = () => {
  return request({
    url: '/shop/status',
    method: 'GET'
  })
}

/* 修改店铺状态的接口 */
export const setShopStatusAPI = (status) => {
  return request({
    url: `/shop/${status}`,
    method: 'PUT'
  })
}
